/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.assignment2.question3.CorrectingDIP.Impl;

import za.ac.cput.assignment2.question3.CorrectingDIP.IVehicle;

/**
 *
 * @author Ziyaad
 */
public class Vehicle {
    
    private int l;
    IVehicle iveh;
    
    public void setIVeh(IVehicle iV)
    {
        iveh = iV;
    }
    
    public double vehicle()
    {
        return iveh.consumesFuel(getL());
    }

    /**
     * @return the l
     */
    public int getL() {
        return l;
    }

    /**
     * @param l the l to set
     */
    public void setL(int l) {
        this.l = l;
    }
    
    
    
}
